package com.foreknow.dao;

import com.foreknow.bean.Guest;

import java.sql.SQLException;
import java.util.List;

public interface GuestDao {
    /**
     *
     * @param id
     * @return
     */
    public Guest getQueryById(Integer id);

    /**
     *
     * @param guest
     * @return
     * @throws SQLException
     */
    public boolean update(Guest guest) throws SQLException;

    /**
     *
     * @return
     */
    public List<Object> getQueryAll();

    /**
     * insert
     * @param guest
     * @return
     * @throws SQLException
     */
    public boolean add(Guest guest)throws SQLException;
}
